import java.util.Scanner;

public class Test3 {
    //统计1到N的整数中，所有立方值的平方根为整数的数字是
    public static void main(String[] args) {
        int count=0;
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入N的值：");
        int N=scan.nextInt();
        for (int i = 1; i <=N; i++) {
            int m=i*i*i;
            for (int j = 1; j <=10000; j++) {
                if(j*j==m){
                    System.out.print(i+" ");
                    count++;
                    break;
                }
            }
        }
        System.out.println();
        System.out.println("count的值为：");
        System.out.println(count);
    }
}
